package com.softer.wxzj.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @description:楼层视图
 * @ClassName: BaseBuildView
 * @author: zcz
 * @date: 2019-05-20 16:3
 */
@Data
public class BaseBuildView {
    private String id;
    private String houseQty;
    private String houseArea;
    private String fundBal;
    private String houseNo;
    //足额
    private int quotaCount;
    //未足额
    private int notDue;
    //未缴存
    private int overdueCount;
    private List<Build> list;

    @Data
    public static class Build {
        private String cellType;
        private String cellTypeName;
        private String startFloor;
        private String endFloor;
        private String cellCount;
        private boolean checked = false;
        private List<Cell> list;

        @Data
        public static class Cell {
            //总房屋数
            private String cellNo;
            private int allHouses;
            private String houseNo;
            //总面积
            private BigDecimal allStrutares;
            //未缴存数量
            private int notDueHouses;
            //缴存数量
            private int DueHouses;

            private String id;
            private String cellType;
            private String cellName;
            private String startFloor;
            private String endFloor;
            private String houseNum;
            private String message;
            private boolean checked = false;
            private List<Floor> list;

            @Data
            public static class Floor {
                private String floorNo;
                //总房屋数
                private int allHouses;
                //总面积
                private BigDecimal allStrutares;
                //未缴存数量
                private int notDueHouses;
                //缴存数量
                private int DueHouses;
                private boolean checked = false;
                private List<House> list;

                @Data
                public static class House {
                    private String houseSite;
                    private String lid;
                    private String qid;
                    private String qstate;
                    private String id;
                    private String lstate;
                    private String step;
                    private String roomNo;
                    private String roomName;
                    /**
                     * 状态 0 空房 1 已售 2销户
                     */
                    private String state;
                    /**
                     * 缴存状态 1足额 2多缴 3少缴 4未交 5免交
                     */
                    private String dueState;
                    /**
                     * 支用申请状态 0申请 1审核中  2审核通过
                     */
                    private String applyState;
                    /**
                     * 交存申请状态（0待申请 1审核中  2审核通过 （缴存中）3审核失败，4正常（缴存结束））
                     */
                    private String dueApplyState;
                    private boolean checked = false;
                    private HouseInfo HouseInfo;

                    @Data
                    public static class HouseInfo {
                        private String dueState;
                        private String id;
                        private String name;
                        private String houseSite;
                        private BigDecimal struArea;
                        private BigDecimal firstDue;
                        private String cellName;
                        private String createTime;
                        private BigDecimal accountFrozen;
                        private String roomName;
                        /**
                         * 当前资金余额
                         */
                        private BigDecimal fundBal;
                        /**
                         * 当前账户余额（本金+利息）
                         */
                        private BigDecimal accrFundBal;
                        /**
                         * 当前账户可用余额（本金+利息-冻结金额）
                         */
                        private BigDecimal accrAvailableBal;
                        /**
                         * 当前资金余额
                         */
                        private BigDecimal accrBal;
                    }
                }
            }
        }
    }
}
